<include file="Public/header"/>
<div class="row">
    <div class="col s12 m8">
        <div class="f-news-list-bloc">
            <div class="card f-news-list">
                <div class="card-content">
                    <p class="card-title">
                        <i class="center">
                            <svg xmlns="http://www.w3.org/2000/svg"
                                 preserveAspectRatio="xMidYMid"
                                 width="22"
                                 height="17">
                                <path fill="#737373"
                                      d="M9.362,9.955h5.689v-1.23H9.362V9.955z M2.529,13.057h5.594V6.852H2.529V13.057z M9.362,
                                      12.653h4.455v-1.23H9.362V12.653z M9.362,7.468h5.689V6.237H9.362V7.468z M17.573,
                                      2.97V0H0v13.964c0,1.642,1.335,2.977,2.976,2.977h14.433c1.641,0,2.976-1.335,
                                      2.976-2.977V2.97H17.573z M16.573,13.964c0,1.09-0.887,1.977-1.976,1.977H2.976C1.887,
                                      15.941,1,15.054,1,13.964V1h15.573V13.964z M19.385,13.964c0,1.09-0.886,1.977-1.976,
                                      1.977h-0.604c0.472-0.527,0.768-1.215,0.768-1.977V3.97h1.812V13.964z M15.052,
                                      3.968H2.521v1.23h12.53V3.968z">
                                </path>
                            </svg>
                        </i>
                        <neq name="info.sign" value="1">
                            <eq name="Think.session.lang" value="1">
                                News
                            <else/>
                                新闻
                            </eq>                             
                        <else/>
                            <eq name="Think.session.lang" value="1">
                                News
                            <else/>
                                 Announcements 
                            </eq>
                        </neq>
                    </p>
                    <p class="f-news-list-author">
                        <i>
                            <svg xmlns="http://www.w3.org/2000/svg"
                                 preserveAspectRatio="xMidYMid"
                                 width="25"
                                 height="25">
                                <path fill="#5CADE2"
                                      d="M10.5,0.496C4.984,0.496,0.496,4.984,0.496,10.5c0,5.517,4.488,10.004,10.004,10.004c5.517,
                                      0,10.004-4.487,10.004-10.004C20.504,4.984,16.017,0.496,10.5,0.496z M10.5,19.504c-4.965,
                                      0-9.004-4.039-9.004-9.004S5.535,1.496,10.5,1.496s9.004,4.039,9.004,9.004S15.465,19.504,
                                      10.5,19.504z M8.24,14.936l6.779-4.565L8.24,6.064V14.936z">
                                </path>
                            </svg>
                        </i>
                            Posted on
                        <time><{$info.add_time|substr=0,10}></time>
                        by<span><a href="<{:U('User/info',array('id'=>code($info['user_id'],1)))}>"><{$info.user_id|getUsername}></a></span>
                    </p>
                    <h3 class="header">
                        <eq name="Think.session.lang" value="1">
                            <{$info.en_title}>
                        <else/>
                            <{$info.title}>
                        </eq>
                    </h3>
                    <eq name="Think.session.lang" value="1">
                        <{$info.en_content}>
                    <else/>
                        <{$info.content}>
                    </eq>
                    <neq name="info['id']" value=''>
                        <div class="right-align thumb-up">
                            <span>
                                <em id='zan'>
                                    <svg xmlns="http://www.w3.org/2000/svg" width="30" viewBox="0 0 795 795">
                                        <path d="M768.3 302.7c-39-50.3-114.9-47-200.2-45.1 1.8-20.3 3.5-40.7 5.3-61 16-99.5-5.1-180.1-86.2-194.9 -20.1-3.7-45.8-1-61 5.3 -40.2 16.6-52.9 55.5-61 104.8 -4.8 29.4 3.9 62.9-2.7 88.8 -8.3 33-33.6 57.5-59.7 72.9 -31.4 18.6-71.9 30-114 37.1 -67.3 11.4-159.8-23-183 31.8 -10.2 24.1-4 70.9-4 102.1 0 79.1 0 158.2 0 237.4 0 45.1-3.2 83.2 22.5 102.1 25.7 18.9 140.1 9.7 185.6 9.3 0-147.2 0-294.4 0-441.6 86.8-4.6 176.2-66.3 196.2-139.2 15.1-55.1-12.1-141.6 35.8-163.1 101-45.4 94.5 104.7 83.5 173.7 -2.7 26.5-5.3 53-8 79.6 0 1.3 0 2.7 0 4 70.9-2.7 180.6-22 216.1 25.2 19.6 26 20.2 77.2 9.3 114 -20.7 70.2-92.3 246.7-139.2 283.8 -28 22.2-48.7 7.5-91.5 14.6 -77.8 1.3-155.6 2.7-233.4 4 0 15 0 30.1 0 45.1 105.2-1.3 210.4-2.7 315.6-4 21.2-6.2 48.4-31.5 61-47.7 20.1-25.9 30.7-58.3 47.7-87.5 33.9-58.3 64.1-127.4 83.5-197.6C802 402 796 338.4 768.3 302.7L768.3 302.7zM165 748.2c-37.6 0-75.1 0-112.7 0C39.5 727.4 47 672.7 47 642.1c0.4-94.1 0.9-188.3 1.3-282.4 17.6-10.3 89.1-4.3 116.7-4C165 486.5 165 617.4 165 748.2L165 748.2z"/>
                                    </svg>
                                </em>
                            </span><span id='zan_num'><{$zan}></span>
                        </div>
                    </neq>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name='group_id' value='<{$info.id}>'/>
<!--中间end-->
<include file='Public/foot'/>
<script>
     $("#zan").mouseover(function(){
        $(this).css("cursor","pointer");
    }).click(function(){
        var group_id=$("input[name='group_id']").val();
        $.post("__MODULE__/Notice/ajaxZan",{group_id:group_id},function(data){
            if(!data){
                if("<?php echo $_SESSION['lang'];?>"=='1'){
                    alert("Has been like, give the opportunity to others.");
                }else{ 
                    alert("已经赞过了，把机会留给别人吧");
                }
            }else{
                $("#zan_num").html(data);
                if("<?php echo $_SESSION['lang'];?>"=='1'){
                    alert("Point like success, thank you for your support.");
                }else{ 
                    alert("点赞成功，谢谢你的支持");
                }
            }
        },"Html");
    });
</script>
